﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using ViCode_LeVi.Data;

namespace ViCode_LeVi.Controls
{
    public class VMComboBox_Probability: ComboBox
    {
        public VMComboBox_Probability()
        {
            if (Style == null)
            {
                this.Style = Application.Current.Resources[typeof(ComboBox)] as Style;
            }
            this.Loaded += new System.Windows.RoutedEventHandler(MyComboxBox_Loaded);
            if (Style == null)
                Style = new Style(typeof(ComboBox), (Style)Application.Current.Resources[typeof(ComboBox)]);
        }
        void MyComboxBox_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {



            this.SelectedValuePath = "Mark";
            this.DisplayMemberPath = "sName";

            this.ItemsSource = E_Risk_Probability.Intance;


        }
    }

    
}
